package com.erp.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2018/5/19/019.
 * 作者：刘洋
 */

public class CrmSouSuoBean {
    public String all="";

    public String xiaoshouyuan = "";
    public String xiaoshouyuan_uid = "";
    public String shejishi = "";
    public String shejishi_uid = "";
    public String kehuming = "";
    public String shoujihao = "";
    public String shengchan = "";
    public String hetong = "";


    public String time_category = "";
    public String start_time = "";
    public String end_time = "";

    public String status = "";
    public String statusname = "";



    public String onum = "";

    public String province = "";
    public String area = "";
    public String areas = "";
    public String o_type = "";
    public String o_types = "";
    public String is_canceled = "";
    public String field_empty = "";
    public String field_emptys = "";
    public String field_not_empty = "";
    public String field_not_emptys = "";
    public String shop_name = "";
    public List<String> special_service_cat = new ArrayList<>();
    public String getString(){
        StringBuffer sousuo = new StringBuffer();
        if(!all.trim().equals("")){
            sousuo.append(all);
        }
        if(!xiaoshouyuan.trim().equals("")){
            if(!sousuo.toString().trim().equals("")){
                sousuo.append(",");
            }
            sousuo.append(xiaoshouyuan);
        }
        if(!shejishi.trim().equals("")){
            if(!sousuo.toString().trim().equals("")){
                sousuo.append(",");
            }
            sousuo.append(shejishi);
        }
        if(!kehuming.trim().equals("")){
            if(!sousuo.toString().trim().equals("")){
                sousuo.append(",");
            }
            sousuo.append(kehuming);
        }
        if(!shoujihao.trim().equals("")){
            if(!sousuo.toString().trim().equals("")){
                sousuo.append(",");
            }
            sousuo.append(shoujihao);
        }
        if(shengchan.trim() != ""){
            if(!sousuo.toString().trim().equals("")){
                sousuo.append(",");
            }
            sousuo.append(shengchan);
        }
        if(!hetong.trim().equals("")){
            if(!sousuo.toString().trim().equals("")){
                sousuo.append(",");
            }
            sousuo.append(hetong);
        }
        return  sousuo.toString();
    }

    @Override
    public String toString() {
        return "CrmSouSuoBean{" +
                "all='" + all + '\'' +
                ", xiaoshouyuan='" + xiaoshouyuan + '\'' +
                ", xiaoshouyuan_uid='" + xiaoshouyuan_uid + '\'' +
                ", shejishi='" + shejishi + '\'' +
                ", shejishi_uid='" + shejishi_uid + '\'' +
                ", kehuming='" + kehuming + '\'' +
                ", shoujihao='" + shoujihao + '\'' +
                ", shengchan='" + shengchan + '\'' +
                ", hetong='" + hetong + '\'' +
                ", time_category='" + time_category + '\'' +
                ", start_time='" + start_time + '\'' +
                ", end_time='" + end_time + '\'' +
                ", status='" + status + '\'' +
                ", statusname='" + statusname + '\'' +
                ", onum='" + onum + '\'' +
                ", province='" + province + '\'' +
                ", area='" + area + '\'' +
                ", areas='" + areas + '\'' +
                ", o_type='" + o_type + '\'' +
                ", o_types='" + o_types + '\'' +
                ", is_canceled='" + is_canceled + '\'' +
                ", field_empty='" + field_empty + '\'' +
                ", field_emptys='" + field_emptys + '\'' +
                ", field_not_empty='" + field_not_empty + '\'' +
                ", field_not_emptys='" + field_not_emptys + '\'' +
                ", shop_name='" + shop_name + '\'' +
                ", special_service_cat=" + special_service_cat +
                '}';
    }
}
